package lesson14;

public class Person {
	/*private String name;
	private int age;
	private	String personalNumber;
	private char sex;
	private double weight;
	public String education;  
	public Person friend;
	int health = 50;
	int hunger = 50;
	int psyhic = 50;
	
	Person(String name, int age, String personalNumber, char sex, double weight)
	{
		this.name = name;
		this.age = age;
		this.personalNumber = personalNumber;
		this.sex = sex;
		this.weight = weight;
	}
	
	Person(String name, int age)
	{
		this.name = name;
		this.age = age;
	}
	
	Person()
	{
		this.name = "alien";
		this.age = 0;
		this.personalNumber = "not exist";
		this.sex = 'A';
		this.weight = 0;
	}
	
	
	void eat(int meetShit)
	{
		hunger+= meetShit;
		if(hunger > 100)
			hunger = 100;
		System.out.println("Nom Nom Nom");
	}
	
	void walk()
	{
		System.out.println(this.getName() + " is walking");
		hunger-=5;
	}
	
	void growUp()
	{
		age++;
	}
	
	void dringSomething(double litres)
	{
		System.out.println("I'm drunk now!");
		hunger+=litres;
	}
	
	public void setAge(int age) {
		this.age = age;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setPersonalNumber(String personalNumber) {
		this.personalNumber = personalNumber;
	}
	
	public void setSex(char sex) {
		this.sex = sex;
	}
	
	public void setWeight(double weight) {
		this.weight = weight;
	}
	
	public double getWeight() {
		return weight;
	}
	
	public char getSex() {
		return sex;
	}
	
	public String getPersonalNumber() {
		return personalNumber;
	}

	public int getAge() {
		return age;
	}
	
	public String getName() {
		return name;
	}

*/
	
	String name;
	int numberOfBoughtCars;
	
	

}
